﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WinSPen.Settings
{
    public enum DrawingMode
    {
        StrokeMode = 0,
        TextMode,
        EraserMode,
    }

    public class ModeSetting
    {
        private static ModeSetting _instance;

        private ModeSetting() {}

        public static ModeSetting GetInstance()
        {
            if (_instance == null)
            {
                _instance = new ModeSetting();
            }
            return _instance;
        }

        private DrawingMode _drawingMode = DrawingMode.StrokeMode;

        public DrawingMode DrawMode
        {
            get { return _drawingMode; }
            set
            {
                _drawingMode = value;

                // TODO: WSPCanvas 에 모드 변경에 대한 noti를 보내야 함
            }
        }
    }
}
